package io.hugetower.modules.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.hugetower.common.utils.PageUtils;
import io.hugetower.common.utils.Query;
import io.hugetower.modules.sys.dao.SysLogLoginDao;
import io.hugetower.modules.sys.entity.SysLogLoginEntity;
import io.hugetower.modules.sys.service.SysLogLoginService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("sysLogLoginService")
public class SysLogLoginServiceImpl extends ServiceImpl<SysLogLoginDao, SysLogLoginEntity> implements SysLogLoginService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SysLogLoginEntity> page = this.page(
                new Query<SysLogLoginEntity>().getPage(params),
                new QueryWrapper<SysLogLoginEntity>()
        );

        return new PageUtils(page);
    }

}